package com.dai;


import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ConfigurableApplicationContext;

@SpringBootApplication
public class Hello {

    public static void main(String[] args) {
        System.out.println("Hello world!");
        ConfigurableApplicationContext ctx = SpringApplication.run(Hello.class,args);
//        Environment env = ctx.getEnvironment();
//        System.out.println(Arrays.toString(env.getActiveProfiles()));
//        System.out.println(Arrays.toString(env.getDefaultProfiles()));
//
//        ComponentBean bean = (ComponentBean) ctx.getBean("componentBean");
//        System.out.println(bean.getName("XX00"));
    }
}
